home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / C++ FAQ Reference 1.0.sit / C++ FAQ Reference 1.0.rsrc / TEXT_1232.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  650 b   |  3 lines

  1. Most Un*x compilers accept '.C' for C++ source files, g++ preferring '.cc', and cfront also accepting '.c'.  Most DOS and OS/2 compilers require '.cpp' since DOS filesystems aren't case sensitive.  Some also advocate '.cxx'.  The impact of this decision is not great, since a trivial shell script can rename all .cc files into .C files.  The only files that would have to be modified are the Makefiles, which is a very small piece of your maintenance costs.
  2.  
  3. You can use '.C' on DOS or OS/2 if the compiler provides a command-line option to tell it to always compile with C++ rules (ex: 'ztc -cpp foo.C' for Zortech, 'bcc -P foo.C' for Borland, etc).